package com.test.message;

import java.sql.Date;

import com.test.message.wrapper.Payload;
import com.test.utils.SerializationUtil;

public abstract class AbstractMessage {
	//消息类型
	public static final int TEXT_MESSAGE = 0;
	public static final int IMAGE_MESSAGE = 1;
	public static final int VOICE_MESSAGE = 2;
	public static final int VIDEO_MESSAGE = 3;
	//聊天类型
	public static final int ONE_TO_ONE = 0;
	public static final int ONE_TO_GROUP = 1;
	
	private String id;
	private String from;
	private String to;
	private int chatType;
	private Date createTime;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public int getChatType() {
		return chatType;
	}
	public void setChatType(int chatType) {
		this.chatType = chatType;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

}
